package com.gscitysfy.cus.drain.modules.resource.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gscitysfy.cus.drain.modules.resource.entity.ResourceCar;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Optional;

/**
 * <p>
 * 防汛车辆表 Mapper 接口
 * </p>
 *
 * @author Administrator
 * @since 2022-10-23 15:27:02
 */
public interface ResourceCarMapper extends BaseMapper<ResourceCar> {

    /**
     * 获取未分配车辆
     *
     * @return
     */
    List<ResourceCar> fetchUnAssignedGis();

    /**
     * 获取已分配车辆
     *
     * @return
     */
    List<ResourceCar> fetchAssignedGis();

    Optional<ResourceCar> getByPhone(@Param("phone") String phone);
}
